package com.len.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * 生成通知单
 */
@Getter
@Setter
@ToString
@Table(name = "t_product_notice")
public class TProductNotice {
  @Id
  @Column(name = "id")
  private String id;
  private String orderNo;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date noticeTime;
  private long saleId;
  private String saleName;
  private String customerAddress;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date deliveryDate;
  /**
   * 结构支撑
   */
  private String structureDept;
  /**
   * 设备
   */
  private String equipmentDept;
  /**
   * 后处理
   */
  private String treatmentDept;
  /**
   * 质检
   */
  private String qualityDept;
  /**
   * 发货人
   */
  private String deliverGoodsDept;
  private String photo;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date structureBeginDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date equipmentBeginDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date treatmentBeginDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date qualityBeginDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date deliverGoodsBeginDate;
  private String feedback;
  private String ispay;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date structureEndDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date equipmentEndDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date treatmentEndDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date qualityEndDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date deliverGoodsEndDate;
  private double price;
  private double amount;
  private List<TProductDemand> taskDetails;
  @Id
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }


  public String getOrderNo() {
    return orderNo;
  }

  public void setOrderNo(String orderNo) {
    this.orderNo = orderNo;
  }


  public Date getNoticeTime() {
    return noticeTime;
  }

  public void setNoticeTime(Date noticeTime) {
    this.noticeTime = noticeTime;
  }


  public long getSaleId() {
    return saleId;
  }

  public void setSaleId(long saleId) {
    this.saleId = saleId;
  }


  public String getSaleName() {
    return saleName;
  }

  public void setSaleName(String saleName) {
    this.saleName = saleName;
  }


  public String getCustomerAddress() {
    return customerAddress;
  }

  public void setCustomerAddress(String customerAddress) {
    this.customerAddress = customerAddress;
  }


  public Date getDeliveryDate() {
    return deliveryDate;
  }

  public void setDeliveryDate(Date deliveryDate) {
    this.deliveryDate = deliveryDate;
  }


  public String getStructureDept() {
    return structureDept;
  }

  public void setStructureDept(String structureDept) {
    this.structureDept = structureDept;
  }


  public String getEquipmentDept() {
    return equipmentDept;
  }

  public void setEquipmentDept(String equipmentDept) {
    this.equipmentDept = equipmentDept;
  }


  public String getTreatmentDept() {
    return treatmentDept;
  }

  public void setTreatmentDept(String treatmentDept) {
    this.treatmentDept = treatmentDept;
  }


  public String getQualityDept() {
    return qualityDept;
  }

  public void setQualityDept(String qualityDept) {
    this.qualityDept = qualityDept;
  }


  public String getDeliverGoodsDept() {
    return deliverGoodsDept;
  }

  public void setDeliverGoodsDept(String deliverGoodsDept) {
    this.deliverGoodsDept = deliverGoodsDept;
  }


  public Date getStructureBeginDate() {
    return structureBeginDate;
  }

  public void setStructureBeginDate(Date structureBeginDate) {
    this.structureBeginDate = structureBeginDate;
  }


  public Date getEquipmentBeginDate() {
    return equipmentBeginDate;
  }

  public void setEquipmentBeginDate(Date equipmentBeginDate) {
    this.equipmentBeginDate = equipmentBeginDate;
  }


  public Date getTreatmentBeginDate() {
    return treatmentBeginDate;
  }

  public void setTreatmentBeginDate(Date treatmentBeginDate) {
    this.treatmentBeginDate = treatmentBeginDate;
  }


  public Date getQualityBeginDate() {
    return qualityBeginDate;
  }

  public void setQualityBeginDate(Date qualityBeginDate) {
    this.qualityBeginDate = qualityBeginDate;
  }


  public Date getDeliverGoodsBeginDate() {
    return deliverGoodsBeginDate;
  }

  public void setDeliverGoodsBeginDate(Date deliverGoodsBeginDate) {
    this.deliverGoodsBeginDate = deliverGoodsBeginDate;
  }


  public String getFeedback() {
    return feedback;
  }

  public void setFeedback(String feedback) {
    this.feedback = feedback;
  }


  public String getIspay() {
    return ispay;
  }

  public void setIspay(String ispay) {
    this.ispay = ispay;
  }


  public Date getStructureEndDate() {
    return structureEndDate;
  }

  public void setStructureEndDate(Date structureEndDate) {
    this.structureEndDate = structureEndDate;
  }


  public Date getEquipmentEndDate() {
    return equipmentEndDate;
  }

  public void setEquipmentEndDate(Date equipmentEndDate) {
    this.equipmentEndDate = equipmentEndDate;
  }


  public Date getTreatmentEndDate() {
    return treatmentEndDate;
  }

  public void setTreatmentEndDate(Date treatmentEndDate) {
    this.treatmentEndDate = treatmentEndDate;
  }


  public Date getQualityEndDate() {
    return qualityEndDate;
  }

  public void setQualityEndDate(Date qualityEndDate) {
    this.qualityEndDate = qualityEndDate;
  }


  public Date getDeliverGoodsEndDate() {
    return deliverGoodsEndDate;
  }

  public void setDeliverGoodsEndDate(Date deliverGoodsEndDate) {
    this.deliverGoodsEndDate = deliverGoodsEndDate;
  }


  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }


  public double getAmount() {
    return amount;
  }

  public void setAmount(double amount) {
    this.amount = amount;
  }

}
